<template>
  <div class="expert-training">
    <div class="item-l item">
      <div
        class="l-txt txt"
        v-for="(item, index) in TrainingList1"
        :key="index"
      >
        <div>{{ item.title }}</div>
        <p>{{ item.p }}</p>
      </div>
    </div>
    <div class="item-img">
      <img src="@/assets/img/education/zyjy1.png" alt="" />
    </div>
    <div class="item-r item">
      <div
        class="r-txt txt"
        v-for="(item, index) in TrainingList2"
        :key="index"
      >
        <div>{{ item.title }}</div>
        <p>{{ item.p }}</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "ExpertTraining",
  props: {
    TrainingList1: Array,
    TrainingList2: Array,
  },
  data() {
    return {
     
    };
  },
};
</script>

<style lang="less" scoped>
.expert-training {
  width: 60%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  .item {
    flex: 3;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    .txt {
      width: 100%;
      display: flex;
      justify-content: center;
      align-content: center;
      flex-direction: column;
      margin-top: 20px;
      div {
        width: 104px;
        height: 40px;
        color: #fff;
        background-color: #0b9b51;
        margin: 0 auto;
        line-height: 40px;
        border-radius: 10px;
      }
      p {
        text-align: center;
        margin-top: 10px;
      }
    }
  }
  .item-img {
    flex: 6;
    img {
      margin: 0 auto;
      display: flex;
      justify-content: center;
      text-align: center;
    }
  }
}
</style>